package com.web.surf.sample.eshop.database.manager.services;

import java.util.List;
import com.web.surf.sample.eshop.database.dao.interfaces.ISectionDao;
import com.web.surf.sample.eshop.database.manager.interfaces.ISectionService;
import com.web.surf.sample.eshop.faces.core.AbstractBean;

public class SectionServiceImpl implements ISectionService{

	ISectionDao sectionDao;
	
	public List<AbstractBean> getSections() {
		return sectionDao.getSections();
	}
	
	public List<AbstractBean> getCategories() {
		return sectionDao.getCategories();
	}
	
	public List<AbstractBean> getSubcategoriesByCategoryID(String categoryID) {
		return sectionDao.getSubcategoriesByCategoryID(categoryID);
	}

	public AbstractBean getSubcategoryByID(String categoryID) {
		return sectionDao.getSubcategoryByID(categoryID);
	}
	
	//Spring
	public void setSectionDao(ISectionDao sectionsDao) {
		this.sectionDao = sectionsDao;
	}
	
}
